import {
	convertToLabelValueList
} from '@/const/utils.js'

export const SPECIFICATIONS_TYPE = {
    UNIT_TAI: 1, // 台
    UNIT_ZHANG: 2, // 张
    UNIT_BA: 3, // 把
    UNIT_TONG: 4, // 桶
    UNIT_PIAN: 5, // 片
};

export const SPECIFICATIONS_NAMES = {
    [SPECIFICATIONS_TYPE.UNIT_TAI]: "台",
    [SPECIFICATIONS_TYPE.UNIT_ZHANG]: "张",
    [SPECIFICATIONS_TYPE.UNIT_BA]: "把",
    [SPECIFICATIONS_TYPE.UNIT_TONG]: "桶",
    [SPECIFICATIONS_TYPE.UNIT_PIAN]: "片",
};

export const SPECIFICATIONS_LIST = convertToLabelValueList(SPECIFICATIONS_TYPE, SPECIFICATIONS_NAMES)